package com.quanyan.pay.entity;

import com.quanyan.common.Plugin.Page;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysPayWayExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public SysPayWayExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSourceSystemCodeIsNull() {
            addCriterion("source_system_code is null");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeIsNotNull() {
            addCriterion("source_system_code is not null");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeEqualTo(String value) {
            addCriterion("source_system_code =", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeNotEqualTo(String value) {
            addCriterion("source_system_code <>", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeGreaterThan(String value) {
            addCriterion("source_system_code >", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeGreaterThanOrEqualTo(String value) {
            addCriterion("source_system_code >=", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeLessThan(String value) {
            addCriterion("source_system_code <", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeLessThanOrEqualTo(String value) {
            addCriterion("source_system_code <=", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeLike(String value) {
            addCriterion("source_system_code like", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeNotLike(String value) {
            addCriterion("source_system_code not like", value, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeIn(List<String> values) {
            addCriterion("source_system_code in", values, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeNotIn(List<String> values) {
            addCriterion("source_system_code not in", values, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeBetween(String value1, String value2) {
            addCriterion("source_system_code between", value1, value2, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceSystemCodeNotBetween(String value1, String value2) {
            addCriterion("source_system_code not between", value1, value2, "sourceSystemCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeIsNull() {
            addCriterion("source_business_code is null");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeIsNotNull() {
            addCriterion("source_business_code is not null");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeEqualTo(String value) {
            addCriterion("source_business_code =", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeNotEqualTo(String value) {
            addCriterion("source_business_code <>", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeGreaterThan(String value) {
            addCriterion("source_business_code >", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeGreaterThanOrEqualTo(String value) {
            addCriterion("source_business_code >=", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeLessThan(String value) {
            addCriterion("source_business_code <", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeLessThanOrEqualTo(String value) {
            addCriterion("source_business_code <=", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeLike(String value) {
            addCriterion("source_business_code like", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeNotLike(String value) {
            addCriterion("source_business_code not like", value, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeIn(List<String> values) {
            addCriterion("source_business_code in", values, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeNotIn(List<String> values) {
            addCriterion("source_business_code not in", values, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeBetween(String value1, String value2) {
            addCriterion("source_business_code between", value1, value2, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andSourceBusinessCodeNotBetween(String value1, String value2) {
            addCriterion("source_business_code not between", value1, value2, "sourceBusinessCode");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNull() {
            addCriterion("pay_id is null");
            return (Criteria) this;
        }

        public Criteria andPayIdIsNotNull() {
            addCriterion("pay_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayIdEqualTo(Integer value) {
            addCriterion("pay_id =", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotEqualTo(Integer value) {
            addCriterion("pay_id <>", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThan(Integer value) {
            addCriterion("pay_id >", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_id >=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThan(Integer value) {
            addCriterion("pay_id <", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdLessThanOrEqualTo(Integer value) {
            addCriterion("pay_id <=", value, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdIn(List<Integer> values) {
            addCriterion("pay_id in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotIn(List<Integer> values) {
            addCriterion("pay_id not in", values, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdBetween(Integer value1, Integer value2) {
            addCriterion("pay_id between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andPayIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_id not between", value1, value2, "payId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}